package top.v5it.japi.ddd.example.product.service;

import top.v5it.japi.ddd.example.domain.proxy.ProductVO;
import top.v5it.japi.ddd.example.product.entity.Product;
import top.v5it.japi.ddd.example.product.entity.ProductReview;

import java.util.List;

/**
 * @author zhanpu
 * @date 2023/11/9
 */
public interface ProductService {

    String SERVICE_NAME = "productService";

    void add(Product entity);

    void modify(Product entity);

    Product searchById(Long id);

    List<Product> searchByIds(List<Long> ids);

    void addProductReview(ProductReview entity);

    ProductVO getProduct(Long id);

    List<ProductVO> getProducts(List<Long> ids);
}
